<template>
  <div class="index">
    <router-view />
    <TabBar :data="tabbarData" />
  </div>
</template>

<script>
import TabBar from '@/components/TabBar'
export default {
  name: 'Index',
  components: {
    TabBar
  },
  data() {
    return {
      tabbarData: [
        { title: '首页', icon: 'home', path: '/home' },
        { title: '订单', icon: 'file-text-o', path: '/order' },
        { title: '我的', icon: 'user', path: '/me' }
      ]
    }
  }
}
</script>

<style scoped>
.index {
  width: 100%;
  padding-bottom: 46px;
  /* height: calc(100% - 45px); */
}
</style>
